@charset "utf-8";

/////////////// html元素

body {
  font-size: 14px;
}

a {
  text-decoration: none;
}

/////////////// end html元素

/////////////// 框架hook

.overflow-auto{
  overflow: auto !important;
}

.scroll-text {
  width: 100%;
  overflow: hidden;
}

.iframe-wrapper {
  width: 100%;
  height: 100%;
}

.platform-android .action-sheet .button {
  text-align: center !important;
}

.bar {
  .title {
    left: 70px !important;
    right: 70px !important;
  }
  .bar-bottom {
    position: absolute;
    left: 0;
    right: 0;
    top: 43px;
  }
}

.scroll-bar-indicator {
  display: none;
}

.tabs{
  background: $bar-bg;
}

.tab-item {
  .icon {
    margin-top: 4px;
    font-size: 24px;
    height: 24px;
  }
  color: $light !important;
}

.tab-item-active, .tab-item.activated{
  // * {
  //   color: $red;
  // }
  background: url(../img/tab.png) center no-repeat;
  background-size: auto 120%;
}

.ng-cloak {
  display: none;
}

ion-content {
  background: url(../img/common/bg-common.png) no-repeat;
  background-size: 100%;
  i:before {
    line-height: inherit !important;
  }
}

.center-block{
  margin: 0 auto;
}

.list {
  margin-bottom: 10px;
}

.item {
  background: none;
  .item-title {
    position: relative;
    margin-bottom: 1px;
    .title-tag{
      vertical-align: 10%;
      color: $red;
      margin-left: 0.5rem;
      padding: 0 0.3rem;
      font-size: 0.7rem;
      border: 1px solid $red;
      border-radius: 0.2rem
    }
    .title-tag-for-new{
      border-color: red;
      color: red;
    }
  }
  .item-title:after {
    content: ' ';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    // border-bottom: 1px solid $line-grey;
    @extend .scale-y-half; }
  >.row {
    padding: 5px 0;
    >.col {
      padding: 5px 0;
    }
  }
  .item-attr{
    font-size: 0.9rem;
    padding-top: 5px;
    border-top: 1px solid $line-grey;
  }
}

.item-icon-left {
  // icon-left
  .icon:first-child {
    color: $icon-grey;
    font-size: 1.4rem;
  }
}

.item-icon-right {
  // icon-right
  .icon:last-child {
    color: $icon-grey;
    font-size: 1.4rem;
  }
  .icon-before {
    color: $icon-before;
    position: absolute;
    top: 0;
    right: 32px;
    bottom: 0;
    line-height: 52px;
    font-size: 0.9rem;
  }
}

.popup-buttons {
  .button {
    color: white;
    background: $yellow !important;
  }
  .button.activated {
    border: none;
  }
  .button-positive.activated {
    background: $yellow !important;
  }
  .button-positive, .button-positive:hover {
    background: $orange !important;
  }
}

.button-orange {
  color: $orange !important;
  background: $light;
  border: 1px solid $orange;
  border-radius: 25px;
  padding: 2px 12px;
  font-size: 14px;
  }

.button-grey {
  color: $light-grey !important;
  background: $light;
  border: 1px solid $light-grey;
  border-radius: 25px;
  padding: 2px 12px;
  font-size: 14px;
  }

// .tab-item-active {
//   color: $bar-bg !important;
// }

.toggle.toggle-calm input:checked+.track {
  border-color: $orange;
  background-color: $orange;
}
/////////////// end 框架hook

/////////////// 通用组件(独立于ionic，可以随处到任何一个无框架的项目中使用)
.supersmall {
  font-size: 0.6em !important;
}
.small {
  font-size: 0.8em !important;
}
.normal {
  font-size: 1em !important;
}
.abitlarge {
  font-size: 1.1em !important;
}
.large {
  font-size: 1.2rem !important;
}
.superlarge {
  font-size: 2.4em !important;
}

.border-top-1 {
  border-top: 1px solid $line-grey;
}

.border-bottom-1 {
  border-bottom: 1px solid $line-grey;
}

.no-border{
  border: 0 !important;
}

.border-radius-0 {
  border-radius: 0 !important;
}

.margin-bottom-p-10 {
  margin-bottom: 10% !important;
}

@for $i from 1 through 10 {
  @each $style in width, height {
    .#{$style}-#{$i*10} {
      #{$style}: $i * 10% !important;
    }
  }
}

$positions: top, right, bottom, left;
// padding and margin
// 逆时针
// padding-5
// padding-top-5
@for $i from 1 through 10 {
    @each $style in padding, margin {
        .#{$style}-#{$i*5} {
            #{$style}: $i * 5px !important;
        }
        @each $position in $positions {
            .#{$style}-#{$position}-#{$i * 5} {
                #{$style}-#{$position}: $i * 5px !important;
            }
        }
    }
}

// no-padding and margin
// 逆时针
// no-padding
// no-padding-top
@each $style in padding, margin {
    .no-#{$style} {
        #{$style}: 0 !important;
    }
    @each $position in $positions {
        .no-#{$style}-#{$position} {
            #{$style}-#{$position}: 0 !important;
        }
    }
}

.flex-center-x {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-direction: row;

  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.flex-center-y {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-direction: row;

  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.flex-center {
  @extend .flex-center-x;
  @extend .flex-center-y;
}

.scale-x-half {
  -moz-transform: scaleX(0.5);
  -ms-transform: scaleX(0.5);
  -o-transform: scaleX(0.5);
  -webkit-transform: scaleX(0.5);
  transform: scaleX(0.5);
}

.scale-y-half {
  -moz-transform: scaleY(0.5);
  -ms-transform: scaleY(0.5);
  -o-transform: scaleY(0.5);
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
}

.transparent {
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
}
.transparent:before {
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
}
.transparent:after {
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
}

.bar-transparent {
  border: 0 !important;
  background: transparent !important;
  color: $bar-font;
  .title {
    color: $bar-font;
  }
}

.no-border {
  border: 0 !important;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.width-25 {
  width: 25% !important;
}
.width-33 {
  width: 33% !important;
}

.middle {
  vertical-align: middle;
  display: inline-block;
}
/////////////// end 通用组件(独立于ionic，可以随处到任何一个无框架的项目中使用)

/////////////// 自定义 styles
.furion-button {
  @extend .button;
  color: $light;
  font-size: 1.3em;
  background-color: $bar-bg;
  border: 0;
  width: 90%;
}
.furion-button:hover {
  color: $light;
}

.bar-furion {
  border-color: $bar-bg;
  background-color: $bar-bg;
  background-image: linear-gradient(0deg,$bar-bg,$bar-bg 50%,transparent 50%);
  color: $bar-font;
  .title {
    color: $bar-font;
  }
}

.share-button {
  @extend .button;
  @extend .button-clear;
  padding-right: 3% !important;
  color: $light;
  font-size: 13px !important;
  border: 0 !important;
}
.share-button:hover {
  box-shadow: none !important;
}
.share-button.activated {
  background: transparent !important;
  box-shadow: none !important;
}
.share-button:before {
  content: '分享';
  position: relative;
  top: -1px;
  right: 6px;
  color: $light;
  font-size: 16px !important;
  line-height: 34px;
}
.share-button:after {
  content: '\f220';
  @extend .ion-share:before;
  display: inline-block;
  position: relative;
  top: -6px;
  left: 0;
  right: 0;
  width: 18px;
  color: $light;
  font-size: 1.4em;
  height: 100%;
  line-height: 39px;
  vertical-align: middle;
}

.back-button {
  @extend .button;
  padding-left: 3% !important;
  color: $light;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  width: 70px;
  text-align: left;
}
.back-button:hover {
  background: transparent !important;
}
.back-button:before {
  @extend .ion-ios-arrow-left:before;
  color: $light;
  font-size: 1.8em;
  line-height: 34px;
}

.cancel-button {
  @extend .button;
  padding-left: 3% !important;
  color: $light;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
}
.cancel-button:hover {
  background: transparent !important;
}
.cancel-button:after {
  content: '不使用';
  display: inline-block;
  position: relative;
  top: -6px;
  left: 0;
  right: 0;
  width: 60px;
  color: $light;
  font-size: 1rem !important;
  height: 100%;
  line-height: 44px;
  vertical-align: middle;
}

.bar-light {
  .back-button, .back-button:before {
    color: black;
  }
}

 #blank-page{
  padding-top: 30px;
 }

.mirror-strip {
  @extend .flex-center;
  background-color: rgba(0,0,0,.6);
  width: 100%;
  height: 2em;
  color: $light;
  font-size: 1.8em;
}
@-webkit-keyframes animationMirrorIn {
  0% {
    filter:alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    height: 0;
  }
  100% {
    filter:alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    height: 2em;
  }
}
@keyframes animationMirrorIn {
  0% {
    filter:alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    height: 0;
  }
  100% {
    filter:alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    height: 2em;
  }
}
.mirrorIn {
  -moz-animation: animationMirrorIn 0.3s ease-in;
  -o-animation: animationMirrorIn 0.3s ease-in;
  -webkit-animation: animationMirrorIn 0.3s ease-in;
  animation: animationMirrorIn 0.3s ease-in;
  height: 2em;
}
@-webkit-keyframes animationMirrorOut {
  0% {
    filter:alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    height: 2em;
  }
  100% {
    filter:alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    height: 0;
  }
}
@keyframes animationMirrorOut {
  0% {
    filter:alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    height: 2em;
  }
  100% {
    filter:alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    height: 0;
  }
}
.mirrorOut {
  -moz-animation: animationMirrorOut 0.3s ease-out;
  -o-animation: animationMirrorOut 0.3s ease-out;
  -webkit-animation: animationMirrorOut 0.3s ease-out;
  animation: animationMirrorOut 0.3s ease-out;
  height: 0;
  filter:alpha(opacity=0);
  -moz-opacity: 0;
  -khtml-opacity: 0;
  opacity: 0;
}

.send-code-button {
  color: $text-grey;
  width: 120px;
  padding: 7px 10px;
  text-align: center;
  border-left: 1px solid $light-grey;
}

.oa-dot {
  &:before {
    content: '\25CF';
    font-size: 20px;
    margin-right: 5px;
    vertical-align: bottom;
  }
}

.pwd-form {
  text-align: center;
  .pwd-input {
    border-radius: 10px;
    .pwd-span {
      border: 1px solid $line-grey;
      border-right-style: none;
      background: $light;
      line-height: 40px;
      min-height: 52px;
      height: 52px;
    }
    .pwd-span:first-child {
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
    }
    .pwd-span:last-child {
      border-right-style: solid;
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
    }
    .active {
      border: 3px solid $dark-grey !important;
    }
    .next_active {
      border-left-style: none;
    }
  }
}

.input-footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  a {
    color: $dark-grey;
    font-size: 20px !important;
  }
  a:hover {
    color: $dark-grey;
  }

  .row {
    border-top: 1px solid $line-grey;
    border-bottom: none;
    padding: 0;
    margin-bottom: 5px;
    background: $light;
  }

  .row:last-child {
    margin-bottom: 2px;
  }

  .button {
    border-width: 0;
    border-right: 1px solid $line-grey;
    background-color: white;
    border-radius: 0;
  }

  .button.activated {
    color: white;
    background-color: #5c6876;
  }

  .button:last-child {
    border-right: none;
  }

  .button-disabled {
    border-right: 1px solid $line-grey;
    background: $bg-grey !important;
  }
}

.pad-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 380px !important;
  height: 380px;
  a {
    color: $dark-grey;
  }
  a:hover {
    color: $dark-grey;
  }
  .go-back:before {
    padding-left: 7px;
    font-size: 38px !important;
  }
  .bar-header {
    height: 44px !important;
    * {
      margin-top: 0 !important;
    }
  }
  ion-content {
    top: 44px !important;
    min-height: 394px;
  }
  .hint-msg {
    text-align: center;
    width: 100%;
    height: 20px;
    color: $red;
  }
}

.progress {
  height: 5px;
  border-radius: 10px;
}
.discount{
  vertical-align: middle;
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  span{
    background: $red !important;
    padding: 0.1rem 0.3rem;
    margin-left: 0.2rem;
    color: white;
  }
}
.row-short-line {
  >.col {
    position: relative;
  }
  >.col:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    content: ' ';
    border-left: 1px solid $line-grey;
    -moz-transform: scaleX(0.5);
    -ms-transform: scaleX(0.5);
    -o-transform: scaleX(0.5);
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
  }
  >.col:last-child:after {
    border-style: none;
  }
}
.row-short-line-orange,
.row-short-line-yellow {
  @extend .row-short-line;
  .col:after {
    border-color: $line-yellow !important;
  }
}

.row-buttons {
  width: 80%;
  margin: 0 auto 10px;
  padding: 0;
  text-align: center;
  border: 1px solid $orange;
  border-radius: 4px;
  background: $light;
  .col {
    @extend .button;
    line-height: 30px;
    min-height: 30px;
    border-radius: 0;
    background: transparent;
  }
  .col.active,
  .col.activated {
    border-color: transparent !important;
    background-color: $orange !important;
    color: $light !important;
  }
}
.row-buttons-with-line {
  width: 100%;
  margin: 0 auto 10px;
  padding: 0;
  text-align: center;
  background: $light;
  border: 1px solid $line-grey;
  .col {
    @extend .button;
    margin-top: 2px;
    line-height: 35px;
    min-height: 35px;
    border-radius: 0;
    background: transparent;
    font-size: 16px !important;
  }
  .col.active,
  .col.activated {
    border-color: transparent !important;
    border-bottom: 2px solid $red !important;
    background-color: $light !important;
    color: $red !important;
  }
}

.loading-box {
  position: relative;
  text-align: center;
  height: 280px;
  line-height: 280px;
  .icon {
    font-size: 140px;
  }
  .loading-circle,
  .success-circle {
    position: relative;
    margin: 65px auto;
    width: 150px;
    height: 150px;
  }
  .loading-circle {
    background: url(../img/pay/pay-loading-circle.png);
    background-size: 150px;
    background-repeat: no-repeat;
  }
  .success-circle {
    background: url(../img/pay/pay-success-circle.png);
    background-size: 150px;
    background-repeat: no-repeat;
  }
  p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    color: $orange;
    font-size: 2em;
    height: 30px;
    line-height: 30px;
  }
}
.icon-center {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.checkmark {
  height: 75px;
  width: 100px;
  display: inline-block;
  -moz-transition: border-color ease 0.2s;
  -o-transition: border-color ease 0.2s;
  -webkit-transition: border-color ease 0.2s;
  transition: border-color ease 0.2s;
  cursor: pointer;
}
.checkmark::before, .checkmark::after {
  position: absolute;
  height: 0;
  width: 6px;
  background-color: $orange;
  display: inline-block;
  -moz-transform-origin: left top;
  -ms-transform-origin: left top;
  -o-transform-origin: left top;
  -webkit-transform-origin: left top;
  transform-origin: left top;
  // border-radius: 5px;
  content: ' ';
  -webkit-transition: opacity ease .5;
  -moz-transition: opacity ease .5;
  transition: opacity ease .5;
}
.checkmark::before {
  top: 64px;
  left: 42px;
  -moz-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
  -moz-animation: dothatopcheck 0.6s ease 0s forwards;
  -o-animation: dothatopcheck 0.6s ease 0s forwards;
  -webkit-animation: dothatopcheck 0.6s ease 0s forwards;
  animation: dothatopcheck 0.6s ease 0s forwards;
}
.checkmark::after {
  top: 39px;
  left: 10px;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -moz-animation: dothabottomcheck 0.3s ease 0s forwards;
  -o-animation: dothabottomcheck 0.3s ease 0s forwards;
  -webkit-animation: dothabottomcheck 0.3s ease 0s forwards;
  animation: dothabottomcheck 0.3s ease 0s forwards;
}
/* Checkmark animation */
@-webkit-keyframes dothabottomcheck {
  0% {
    height: 0;
  }

  100% {
    height: 40px;
  }
}
@keyframes dothabottomcheck {
  0% {
    height: 0;
  }

  100% {
    height: 40px;
  }
}
@-webkit-keyframes dothatopcheck {
  0% {
    height: 0;
  }

  50% {
    height: 0;
  }

  100% {
    height: 70px;
  }
}
@keyframes dothatopcheck {
  0% {
    height: 0;
  }

  50% {
    height: 0;
  }

  100% {
    height: 70px;
  }
}
.animation-rotate {
  -moz-animation: animationRotate 1s linear 0s infinite;
  -o-animation: animationRotate 1s linear 0s infinite;
  -webkit-animation: animationRotate 1s linear 0s infinite;
  animation: animationRotate 1s linear 0s infinite;
}
.animation-rotate:before {
  -moz-animation: animationRotate 1s linear 0s infinite;
  -o-animation: animationRotate 1s linear 0s infinite;
  -webkit-animation: animationRotate 1s linear 0s infinite;
  animation: animationRotate 1s linear 0s infinite;
}
@-webkit-keyframes animationRotate {
  0% {
    -webkit-transform: rotate(0deg);
    -webkit-transform-origin: center;
  }
  100% {
    -webkit-transform: rotate(360deg);
    -webkit-transform-origin: center;
  }
}
@keyframes animationRotate {
  0% {
    transform: rotate(0deg);
    transform-origin: center;
  }
  100% {
    transform: rotate(360deg);
    transform-origin: center;
  }
}

.gesture-avatar {
  width: 80px;
}

.lockpattern-bg {
  background-image: url(../img/backgrounds/lockpattern.jpg);
  background-size: 100% 100%;
}

.bg-transparent {
  background: transparent !important;
}

input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill{
  -webkit-box-shadow: 0 0 0px 1000px white inset; 
  border: 1px solid #CCC!important; 
}

.list-session{
  width: 90%;
  margin: 0 auto;
  .item{
    height: 40px;
    line-height: 40px;
    border: none;
    padding: 0 !important;
    box-shadow: 1px 1px 1px rgba(0,0,0,.4);
  }
  .input-label{
    text-align: center;
    height: 100%;
    background: rgba(0,0,0,.4) !important;
    color: $light;
  }
  input{
    height: 100%;
    border: 1px solid $line-grey;
    background-color: rgba(255, 255, 255, .4) !important;
  }
}
/////////////// end 自定义 styles
